import request from "../util/request"
//封装的接口
//登录接口
export const LOGIN = (url,data) => request({
    url: url,
    method: "post",
    params: data
})
//用户列表接口
export const USERLIST = (url,data) => request({
    url: url,
    method: "post",
    params:data
})

//首页接口
export const USER = (url,data) => request({
    url: url,
    method: "post",
    params:data
})

//商品管理
export const DITYLIST = (url,data) => request({
    url: url,
    method: "post",
    params:data
})

//商品详情
export const DETAIL = (url,data) => request({
    url: url,
    method: "get",
    params:data
})

//商品 修改
export const  EDIT = (url,data) => request({
    url: url,
    method: "get",
    params:data
})

//确认商品 修改
export const  SURE = (url,data) => request({
    url: url,
    method: "get",
    params:data

})

//商品 的上架 下架
export const  UNder = (url,data) => request({
    url: url,
    method: "get",
    params:data

})

//商品 二级菜单 
export const  category = (url,data) => request({
    url: url,
    method: "get",
    params:data

})

//商品 添加
export const  addDity = (url,data) => request({
    url: url,
    method: "get",
    params:data

})


//商品 搜索
export const  screen = (data) => request({
    url: `/product/search.do`,
    method: "get",
    params:data

})

//获取 品类管理 数据
export const  BASIS = (data) => request({
    url: `/category/get_category.do`,
    method: "get",
    params:data
})

//品类管理 修改品类
export const  editID = (url,data) => request({
    url: url,
    method: "get",
    params:data
})

//品类管理--添加品类
export const  add_category = (url,data) => request({
    url: url,
    method: "get",
    params:data
})

//订单管理  获取总数据
export const  ORDER = (url,data) => request({
    url: url,
    method: "get",
    params:data
})

//订单管理  搜索接口
export const  orderSearch = (url,data) => request({
    url: url,
    method: "get",
    params:data
})

//订单管理 详情接口
export const  orderDeatil = (url,data) => request({
    url: url,
    method: "get",
    params:data
})